home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / race_gam.swf / scripts / DefineSprite_124 / frame_1 / DoAction.as
Encoding:
Text File  |  2008-11-12  |  7.1 KB  |  248 lines

  1. var ┬º\x01┬º = 823;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 823)
  5.    {
  6.       set("\x01",eval("\x01") + 123);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else if(eval("\x01") == 369)
  10.    {
  11.       set("\x01",eval("\x01") - 75);
  12.       ┬º┬ºpush(true);
  13.    }
  14.    else
  15.    {
  16.       if(eval("\x01") == 20)
  17.       {
  18.          set("\x01",eval("\x01") + 571);
  19.          break;
  20.       }
  21.       if(eval("\x01") == 920)
  22.       {
  23.          set("\x01",eval("\x01") + 34);
  24.          if(┬º┬ºpop())
  25.          {
  26.             set("\x01",eval("\x01") - 107);
  27.          }
  28.       }
  29.       else
  30.       {
  31.          if(eval("\x01") != 301)
  32.          {
  33.             if(eval("\x01") == 929)
  34.             {
  35.                set("\x01",eval("\x01") - 649);
  36.                if(┬º┬ºpop() < ┬º┬ºpop())
  37.                {
  38.                   return undefined;
  39.                }
  40.                set(┬º┬ºconstant(14),0);
  41.                if(eval(┬º┬ºconstant(0)) < 0)
  42.                {
  43.                   return undefined;
  44.                }
  45.                set(┬º┬ºconstant(9),eval(┬º┬ºconstant(10) + eval(┬º┬ºconstant(0))));
  46.                if(eval(┬º┬ºconstant(9))[┬º┬ºconstant(16)])
  47.                {
  48.                   eval(┬º┬ºconstant(9))[┬º┬ºconstant(16)] = false;
  49.                }
  50.                else
  51.                {
  52.                   eval(┬º┬ºconstant(9))[┬º┬ºconstant(16)] = true;
  53.                }
  54.             }
  55.             else
  56.             {
  57.                if(eval("\x01") == 946)
  58.                {
  59.                   set("\x01",eval("\x01") - 196);
  60.                   if(┬º┬ºpop())
  61.                   {
  62.                      set("\x01",eval("\x01") - 657);
  63.                   }
  64.                   continue;
  65.                }
  66.                if(eval("\x01") == 750)
  67.                {
  68.                   set("\x01",eval("\x01") - 657);
  69.                   break;
  70.                }
  71.                if(eval("\x01") == 330)
  72.                {
  73.                   set("\x01",eval("\x01") + 86);
  74.                   ┬º┬ºpush(true);
  75.                   continue;
  76.                }
  77.                if(eval("\x01") == 740)
  78.                {
  79.                   set("\x01",eval("\x01") + 189);
  80.                   if(┬º┬ºpop())
  81.                   {
  82.                      set("\x01",eval("\x01") - 649);
  83.                   }
  84.                   continue;
  85.                }
  86.                if(eval("\x01") == 435)
  87.                {
  88.                   set("\x01",eval("\x01") - 289);
  89.                   ┬º┬ºpush(true);
  90.                   continue;
  91.                }
  92.                if(eval("\x01") == 551)
  93.                {
  94.                   set("\x01",eval("\x01") - 57);
  95.                   if(┬º┬ºpop())
  96.                   {
  97.                      set("\x01",eval("\x01") - 125);
  98.                   }
  99.                   continue;
  100.                }
  101.                if(eval("\x01") == 280)
  102.                {
  103.                   set("\x01",eval("\x01") - 66);
  104.                   ┬º┬ºpush(true);
  105.                   continue;
  106.                }
  107.                if(eval("\x01") == 416)
  108.                {
  109.                   set("\x01",eval("\x01") - 396);
  110.                   if(┬º┬ºpop())
  111.                   {
  112.                      set("\x01",eval("\x01") + 571);
  113.                   }
  114.                   continue;
  115.                }
  116.                if(eval("\x01") == 591)
  117.                {
  118.                   set("\x01",eval("\x01") + 149);
  119.                   ┬º┬ºpush(true);
  120.                   continue;
  121.                }
  122.                if(eval("\x01") == 214)
  123.                {
  124.                   set("\x01",eval("\x01") + 507);
  125.                   if(┬º┬ºpop())
  126.                   {
  127.                      set("\x01",eval("\x01") - 286);
  128.                   }
  129.                   continue;
  130.                }
  131.                if(eval("\x01") == 93)
  132.                {
  133.                   set("\x01",eval("\x01") + 458);
  134.                   ┬º┬ºpush(true);
  135.                   continue;
  136.                }
  137.                if(eval("\x01") == 829)
  138.                {
  139.                   set("\x01",eval("\x01") - 538);
  140.                   break;
  141.                }
  142.                if(eval("\x01") == 337)
  143.                {
  144.                   set("\x01",eval("\x01") - 36);
  145.                   break;
  146.                }
  147.                if(eval("\x01") == 721)
  148.                {
  149.                   set("\x01",eval("\x01") - 286);
  150.                   break;
  151.                }
  152.                if(eval("\x01") == 653)
  153.                {
  154.                   set("\x01",eval("\x01") - 323);
  155.                   break;
  156.                }
  157.                if(eval("\x01") == 146)
  158.                {
  159.                   set("\x01",eval("\x01") + 683);
  160.                   if(┬º┬ºpop())
  161.                   {
  162.                      set("\x01",eval("\x01") - 538);
  163.                   }
  164.                   continue;
  165.                }
  166.                if(eval("\x01") == 291)
  167.                {
  168.                   set("\x01",eval("\x01") - 113);
  169.                   ┬º┬ºpush(true);
  170.                   continue;
  171.                }
  172.                if(eval("\x01") == 494)
  173.                {
  174.                   set("\x01",eval("\x01") - 125);
  175.                   toggleHighQuality();
  176.                   break;
  177.                }
  178.                if(eval("\x01") == 178)
  179.                {
  180.                   set("\x01",eval("\x01") + 159);
  181.                   if(┬º┬ºpop())
  182.                   {
  183.                      set("\x01",eval("\x01") - 36);
  184.                   }
  185.                   continue;
  186.                }
  187.                if(eval("\x01") == 294)
  188.                {
  189.                   set("\x01",eval("\x01") + 359);
  190.                   if(┬º┬ºpop())
  191.                   {
  192.                      set("\x01",eval("\x01") - 323);
  193.                   }
  194.                   continue;
  195.                }
  196.                if(eval("\x01") == 954)
  197.                {
  198.                   set("\x01",eval("\x01") - 107);
  199.                   break;
  200.                }
  201.                if(eval("\x01") != 847)
  202.                {
  203.                   break;
  204.                }
  205.                set("\x01",eval("\x01") - 434);
  206.                stop();
  207.                user_car = 0;
  208.                used = [0,0,0,0,0,0,0,0];
  209.                i = 0;
  210.                while(i < _parent.CAR_MAX)
  211.                {
  212.                   var max = -999;
  213.                   n = 0;
  214.                   j = 0;
  215.                   while(j < _parent.CAR_MAX)
  216.                   {
  217.                      if(used[j] != 1)
  218.                      {
  219.                         if(_parent.pt[j] > max)
  220.                         {
  221.                            max = _parent.pt[j];
  222.                            n = j;
  223.                         }
  224.                      }
  225.                      j++;
  226.                   }
  227.                   used[n] = 1;
  228.                   mc = eval("car" + i);
  229.                   mc.gotoAndStop(1 + n);
  230.                   eval("pt" + i).text = _parent.pt[n] + "pts";
  231.                   if(n == 0)
  232.                   {
  233.                      user_car = i;
  234.                   }
  235.                   i++;
  236.                }
  237.                cnt = 0;
  238.                ┬º┬ºpush("onEnterFrame");
  239.             }
  240.             set(┬º┬ºpop(),┬º┬ºpop());
  241.             break;
  242.          }
  243.          set("\x01",eval("\x01") + 619);
  244.          ┬º┬ºpush(true);
  245.       }
  246.    }
  247. }
  248.